package com.lc.common.bean.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 消息体Bean
 * @param <T> 消息体泛型
 * @author LingChou
 */
@Data
@ApiModel(value = "MessageDTO", description = "消息Bean")
public class MessageDTO<T> {
    /**
     * 消息类型
     */
    @ApiModelProperty(value = "消息类型")
    private String messageType;

    /**
     * 消息体
     */
    @ApiModelProperty(value = "消息体")
    private T data;

    /**
     * 发送方
     */
    @ApiModelProperty(value = "发送方")
    private String sender;

    /**
     * 发送时间
     */
    @ApiModelProperty(value = "发送时间")
    private LocalDateTime sendTime;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remarks;
}
